/**
 * CMS内容管理系统路由
 */
export default [
  {
    path: '/cms',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'articles',
        name: 'CmsArticles',
        component: () => import('@/views/cms/Articles.vue'),
        meta: { title: '文章管理' }
      },
      {
        path: 'categories',
        name: 'CmsCategories',
        component: () => import('@/views/cms/Categories.vue'),
        meta: { title: '栏目管理' }
      },
      {
        path: 'tags',
        name: 'CmsTags',
        component: () => import('@/views/cms/Tags.vue'),
        meta: { title: '标签管理' }
      },
      {
        path: 'comments',
        name: 'CmsComments',
        component: () => import('@/views/cms/Comments.vue'),
        meta: { title: '评论管理' }
      },
      {
        path: 'media',
        name: 'CmsMedia',
        component: () => import('@/views/cms/Media.vue'),
        meta: { title: '媒体库' }
      },
      {
        path: 'links',
        name: 'CmsLinks',
        component: () => import('@/views/cms/Links.vue'),
        meta: { title: '友情链接' }
      },
      {
        path: 'ads',
        name: 'CmsAds',
        component: () => import('@/views/cms/Ads.vue'),
        meta: { title: '广告管理' }
      }
    ]
  }
]

